Token
This endpoint is used to authenticate users and obtain API credentials in the form of clientID, apiKey, and apiSecret. These credentials are required to access other endpoints that require authentication.
Environment
Use the appropriate environment based on your needs:
| Environment | Description |
|---|---|
production | For live applications (real data) |
sandbox | For testing and development purposes |
Replace <environment> in the URL with:
apifor productionapi-sandboxfor sandbox
URL
-
Production:
https://api.satuplatform.com/api/v1/token -
Sandbox:
https://api-sandbox.satuplatform.com/api/v1/token
Parameters
| Parameter | Type | Description |
|---|---|---|
email | string | User email address |
password | string | User password |
Request
Use the following JSON format to request a token:
Request Body
{
"email": "user@example.com",
"password": "yourpassword"
}
Response Body
{
"success": true,
"data": [
{
"clientID": "your_client_id",
"apiKey": "your_api_key",
"apiSecret": "your_api_secret"
}
]
}
Status Code
| Status Code | Description |
|---|---|
200 | OK |